package com.wenbai.servicelightluxurystickers.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("stick_post")
public class StickPost {

    @TableId(type = IdType.AUTO)
    private Long postId;

    private Long forumId;

    private Long userId;

    private String category;

    private String postTitle;

    // 存储为JSON字符串，实际使用时可以转换为List<String>
    private String postImages;

    private String postContent;

    private Integer viewCount;

    private Integer commentCount;

    private Integer likeCount;

    private Boolean isTop;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    @TableField(exist = false)
    private StickUser user;
    @TableField(exist = false)
    private String forumName;
    @TableField(exist = false)
    private StickForum forum;
}